from django.contrib import admin
from .models import Category, Movie

@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
    list_display = ['id', 'category_name', 'description']
    list_display_links = ['category_name']


@admin.register(Movie)
class MovieAdmin(admin.ModelAdmin):
    list_display = ['id', 'movie_name', 'types','rate', 'release_date']
    list_display_links = ['movie_name']